﻿<%@ Control Language="c#" Inherits="Web.Control.WWW.Answers.Search" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1>
									<%if (show == "0")
									{%>
									<%=GetText("AS165")%>
									<%if (key.Trim() != "")
									{%> 
									<%=GetText("AS167",new string[]{key})%>
									<%} %> 
									<%}
									else
									{%><%=GetText("AS166")%><%} %>
								</h1>
							</div>
							<div class="submenuN_button"><a href="/answers/ask.htm" class="Naddbtn btnspec"><span>&nbsp;&nbsp;&nbsp;<%=GetText("AS002")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="center9001content">
							<div class="answers_area">
								<%if (RecordCount != 0)
								{%>
								<div id="askQuestype1">
									<div>
								<%}
								else
								{ %>
								<div id="askQuestype1">
									<div>
								<%} %>
										<div class="floatl"><%=GetText("C0016")%> <select id="Learning1" class="common180" name="Learning"onchange="searl()"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(Learn)%></select>&nbsp;&nbsp;&nbsp;&nbsp;<%=GetText("AS091")%> <select id="Using1" class="common180" name="Learning"onchange="searl()"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(BaseL)%></select></div>
										<div class="floatr"><%=GetText("AS143",new string[]{RecordCount.ToString()})%></div>
										<div class="clear"></div>
									</div>
									<%if (RecordCount != 0)
									{%>
									<div class="sort_language" style="text-align:right">
										<%=GetText("C2017")%>: <span id="sort1"><%=sort == 1 ? "<strong>"+GetText("C2002").ToString()+"</strong>" : "<a href=\"" + LoginHost + "/answers/search-" + key + "-" + Learn + "-" + BaseL + "-1-1-"+st+".htm\">" + GetText("C2002") + "</a>"%></span> | <span id="sort2"><%=sort == 2 ? "<strong>"+GetText("C2011").ToString()+"</strong>" : "<a href=\"" + LoginHost + "/answers/search-" + key + "-" + Learn + "-" + BaseL + "-1-2-"+st+".htm\">" + GetText("C2011") + "</a>"%></span> | <span id="sort3"><%=sort == 3 ? "<strong>"+GetText("AS079").ToString()+"</strong>" : "<a href=\"" + LoginHost + "/answers/search-" + key + "-" + Learn + "-" + BaseL + "-1-3-"+st+".htm\">" + GetText("AS079") + "</a>"%></span>
									</div>
									<%}
									else if(show=="1")
									{ %>
									<div class="pink12"><%=GetText("AS168")%></div>
									<%} %>
								</div>
								<div class="content628 margin20">
									<div id="divAskQuesList">
										<asp:Repeater ID="repQuest" runat="server">
										<ItemTemplate>
											<div class="margin20">
												<div class="floatl wid65"><div class="pic50"><a class="photo_50" href="<%#LoginHost%>/<%#Eval("MemberNo") %>.htm" title="<%#Eval("Nickname") %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
												<div class="floatr alist_content">
													<span class="blue14BU"><a href="<%#LoginHost%>/answers/question/<%#Eval("QuestionID") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%>"><img src="<%#QStatusImage(Eval("Status").ToString())%>" border="0" align="absmiddle" /></a> <a href="<%#LoginHost%>/answers/question/<%#Eval("QuestionID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a></span>
													<p><%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString()) ? Eval("LanguageLearn", "<a href='" + LoginHost + "/answers/learn-" + Eval("LanguageLearn") + "-all/1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString()) }) + "' align='absmiddle' /></a>") : ""%> <a href='<%#LoginHost%>/answers/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm'><%#GetText("C0105",new string[]{BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())})%></a>&nbsp;&nbsp;<%#GetText("AS063",new string[]{"<a href="+LoginHost+"'/"+Eval("MemberNo") +".htm'>"+Eval("Nickname") +"</a>"})%> - <%#GetText("AS142",new string[]{Eval("AnswerCount").ToString()})%> - <%#FormatDiffDate(GetText("C0037"), Eval("DiffLastUpdate").ToString())%></p>
												</div>
												<div class="clear"></div>
											</div>
										</ItemTemplate>
									</asp:Repeater>
									</div>
									<div id="divAskQuesPager">
											<%=CreatePageNav(RecordCount, 15, pageIndex,
										"",
										string.Format("<span class='page_none grey10'><a href='{6}/answers/search-{0}-{1}-{2}-$I$-{3}-{4}.htm'>{5}</a></span>&nbsp;", HttpUtility.UrlEncode(key.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(sort.ToString()), HttpUtility.UrlEncode(st.ToString()), HttpUtility.UrlEncode(GetText("Prev")),LoginHost),
										"",
										string.Format("<span class='page_none grey10'><a href='{6}/answers/search-{0}-{1}-{2}-$I$-{3}-{4}.htm'>{5}</a></span>&nbsp;", HttpUtility.UrlEncode(key.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(sort.ToString()), HttpUtility.UrlEncode(st.ToString()), HttpUtility.UrlEncode(GetText("Next")),LoginHost),
										string.Format("<span class='page_select'>{0}</span>&nbsp;",pageIndex),
										string.Format("<span class='page_none grey10'><a href='{5}/answers/search-{0}-{1}-{2}-$I$-{3}-{4}.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode(key.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(sort.ToString()), HttpUtility.UrlEncode(st.ToString()),LoginHost))%>   
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
									<asp:Repeater ID="rptLL" runat="server">
										<ItemTemplate>										
										<li><a href='<%#LoginHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' align='absmiddle' border="0" /></a> <a href='<%#LoginHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
										</ItemTemplate>
									</asp:Repeater>
									</ul>
								<p align="right"><a href="<%=LoginHost%>/answers/categories.htm"><%=GetText("C0028")%></a></p>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2001")%></h4>
								<div class="layer_contentA5">
									<ul class="tag_common_right">
									<asp:Repeater ID="repTags" runat="server">
										<ItemTemplate>
											<li><a href="<%#LoginHost%>/answers/tag/<%#Eval("TagName")%>-1.htm"><%#Eval("TagName")%></a></li>
										</ItemTemplate>
									</asp:Repeater>
									</ul>
									<div class="clear"></div>
									<p align="right"><a href="<%=LoginHost%>/answers/tag/"><%=GetText("AS111")%></a></p>
								</div>
							</div>
						</div>
						<div class="ad_site margin20T">
							<script type="text/javascript">
							  GA_googleFillSlot("all_pages_right160x600");
							</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script language="javascript">
	var key="<%=key%>";
	var lhost="<%=LoginHost%>";
	var sort="<%=sort%>";
	var st="<%=st %>";
</script>
